//
//  AnchorView.m
//  网络FM
//
//  Created by dlios on 15/5/23.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "AnchorView.h"

@implementation AnchorView

- (void)dealloc
{
    [_anchorDesc release];
    [_anchorName release];
    [_anchorView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createAnchorView];
    }
    return self;
}

- (void)createAnchorView
{
    _anchorView = [[UIImageView alloc]initWithFrame:CGRectMake(130, 20, 80, 80)];
    _anchorView.layer.cornerRadius = 20;
    [self addSubview:_anchorView];
    [_anchorView release];
    
    _anchorName = [[UILabel alloc]initWithFrame:CGRectMake(140, 110, 80, 20)];
    [self addSubview:_anchorName];
    [_anchorName release];
//
//   _anchorDesc = [[UILabel alloc]initWithFrame:CGRectMake(40, 110, 240, 40)];
//    [_anchorDesc setBackgroundColor:[UIColor cyanColor]];
//    [self addSubview:_anchorDesc];
//    [_anchorDesc release];
    

}

@end
